﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Web;
using System.Web.UI;
using System.Web.UI.WebControls;
using Sauces.Bussinees.Entities.Compras;
using Sauces.Bussinees.Logic.Compras.Service;
using Microsoft.Practices.Unity;
using System.Web.ModelBinding;


namespace Sauces.Web.Compras
{
    public partial class FrmListaProveedor : System.Web.UI.Page
    {
        [Dependency]
        public IProveedorService  ProveedorService { get; set; }
        protected void Page_Load(object sender, EventArgs e)
        {

        }       

        public IEnumerable<Proveedor> GetProveedor([Control("txtCriterio")] string criterio)
        {
            return ProveedorService.getAllProveedorByRazonSocialRuc(criterio);
        }
    }
}